<script>
	export default {
		globalData: {  
			pubContent: '',
			pubSig: ''
		},
		// #ifdef MP-ALIPAY
		onShow(options){
			var app = this;
			//获取关联普通二维码的码值，放到全局变量中
			if (options.query && options.query.qrCode) {
				console.log("打印一下动态参数：",options.query.qrCode)
				let scene = decodeURIComponent(options.query.qrCode);
				app.globalData.pubContent=app.gup('content', scene)
				app.globalData.pubSig=app.gup('sig', scene)
			}
		},
		// #endif
		onLaunch(options) {
			let that = this;
			// #ifdef MP-ALIPAY
			var app = this;
			//获取关联普通二维码的码值，放到全局变量中
			if (options.query && options.query.qrCode) {
				console.log("打印一下动态参数：",options.query.qrCode)
				let scene = decodeURIComponent(options.query.qrCode);
				app.globalData.pubContent=app.gup('content', scene)
				app.globalData.pubSig=app.gup('sig', scene)
			}
			// #endif
			/*#ifdef MP-WEIXIN || MP-ALIPAY*/
			const accountInfo = uni.getAccountInfoSync();
			that.$store.commit('upversion', accountInfo.miniProgram.version);
			uni.setStorageSync('ver', accountInfo.miniProgram.version);
			/*#endif*/
			// 需要查看首页商家、团购列表，打开以下代码，上传版本时需屏蔽此代码
			// uni.setStorageSync('ver', '111');
			// 1023安卓系统桌面图标
			if(uni.getLaunchOptionsSync().scene == 1023){
				uni.setStorageSync('isDesktopCut',true);
			}else{
				uni.setStorageSync('isDesktopCut',false);
			}
			// 因为现在不每次都请求地理位置，所以手动获取下上次位置
			if(uni.getStorageSync('x')){
				that.$store.commit('upLocation', {
					x: uni.getStorageSync('x'),
					y: uni.getStorageSync('y')
				})
			}
			const updateManager = uni.getUpdateManager();
			updateManager.onUpdateReady(function(res) {
				uni.showModal({
					title: '更新提示',
					content: '新版本已经准备好，是否重启应用？',
					showCancel: false,
					success(res) {
						if (res.confirm) {
							// 新的版本已经下载好，调用 applyUpdate 应用新版本并重启
							updateManager.applyUpdate();
						}
					}
				});
			});
		}
	}
</script>

<style lang='scss'>
	/*
		全局公共样式和字体图标
	*/
	page {
		font-size: 28upx;
	}
	::-webkit-scrollbar {
		display: none;
		width: 0 !important;
		height: 0 !important;
		-webkit-appearance: none;
		background: transparent;
	}
	
	uni-radio .uni-radio-input {
		background: transparent;
	}

	@font-face {
		font-family: yticon;
		font-weight: normal;
		font-style: normal;
		src: url('https://at.alicdn.com/t/font_1078604_w4kpxh0rafi.ttf') format('truetype');
	}
	/* #ifdef MP-ALIPAY */
	button{
		border: none;
		/* background: $bg-color; */
		/* color: #fff; */
	}
	/* #endif */
	.yticon {
		font-family: "yticon" !important;
		font-size: 16px;
		font-style: normal;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	.icon-yiguoqi1:before {
		content: "\e700";
	}

	.icon-kefu1:before {
		content: "\e73b";
	}

	/* 省略号 */
	.icon-ellipsis2:before {
		content: "\e701";
	}

	.icon-iconfontshanchu1:before {
		content: "\e619";
	}

	.icon-iconfontweixin:before {
		content: "\e611";
	}

	.icon-alipay:before {
		content: "\e636";
	}

	.icon-shang:before {
		content: "\e624";
	}

	.icon-shouye:before {
		content: "\e626";
	}

	.icon-shanchu4:before {
		content: "\e622";
	}

	.icon-xiaoxi:before {
		content: "\e618";
	}

	.icon-jiantour-copy:before {
		content: "\e600";
	}

	.icon-fenxiang2:before {
		content: "\e61e";
	}

	.icon-pingjia:before {
		content: "\e67b";
	}

	.icon-daifukuan:before {
		content: "\e68f";
	}

	.icon-pinglun-copy:before {
		content: "\e612";
	}

	.icon-dianhua-copy:before {
		content: "\e621";
	}

	.icon-shoucang:before {
		content: "\e645";
	}

	.icon-xuanzhong2:before {
		content: "\e62f";
	}

	.icon-gouwuche_:before {
		content: "\e630";
	}

	.icon-icon-test:before {
		content: "\e60c";
	}

	.icon-icon-test1:before {
		content: "\e632";
	}

	.icon-bianji:before {
		content: "\e646";
	}

	.icon-jiazailoading-A:before {
		content: "\e8fc";
	}

	.icon-zuoshang:before {
		content: "\e613";
	}

	.icon-jia2:before {
		content: "\e60a";
	}

	.icon-huifu:before {
		content: "\e68b";
	}

	.icon-sousuo:before {
		content: "\e7ce";
	}

	.icon-arrow-fine-up:before {
		content: "\e601";
	}

	.icon-hot:before {
		content: "\e60e";
	}

	/* 三点钟表 */
	.icon-lishijilu:before {
		content: "\e6b9";
	}

	.icon-zhengxinchaxun-zhifubaoceping-:before {
		content: "\e616";
	}

	.icon-naozhong:before {
		content: "\e64a";
	}

	/* 首页 */
	.icon-xiatubiao--copy:before {
		content: "\e608";
	}

	.icon-shoucang_xuanzhongzhuangtai:before {
		content: "\e6a9";
	}

	.icon-jia1:before {
		content: "\e61c";
	}

	.icon-bangzhu1:before {
		content: "\e63d";
	}

	.icon-arrow-left-bottom:before {
		content: "\e602";
	}

	.icon-arrow-right-bottom:before {
		content: "\e603";
	}

	.icon-arrow-left-top:before {
		content: "\e604";
	}

	.icon-icon--:before {
		content: "\e744";
	}

	.icon-zuojiantou-up:before {
		content: "\e605";
	}

	.icon-xia:before {
		content: "\e62d";
	}

	.icon--jianhao:before {
		content: "\e60b";
	}

	.icon-weixinzhifu:before {
		content: "\e61a";
	}

	.icon-comment:before {
		content: "\e64f";
	}

	.icon-weixin:before {
		content: "\e61f";
	}

	.icon-fenlei1:before {
		content: "\e620";
	}

	.icon-erjiye-yucunkuan:before {
		content: "\e623";
	}

	/* 下载 */
	.icon-Group-:before {
		content: "\e688";
	}

	.icon-icon-test2:before {
		content: "\e64d";
	}

	.icon-callingrobort:before {
		content: "\e6de";
	}

	.icon-you:before {
		content: "\e606";
	}

	.icon-forward:before {
		content: "\e607";
	}

	.icon-tuijian:before {
		content: "\e610";
	}

	.icon-bangzhu:before {
		content: "\e679";
	}

	.icon-share:before {
		content: "\e656";
	}

	.icon-yiguoqi:before {
		content: "\e997";
	}

	.icon-shezhi1:before {
		content: "\e61d";
	}

	.icon-fork:before {
		content: "\e61b";
	}

	.icon-kafei:before {
		content: "\e66a";
	}

	.icon-iLinkapp-:before {
		content: "\e654";
	}

	/* 扫一扫 */
	.icon-saomiao:before {
		content: "\e60d";
	}

	.icon-shezhi:before {
		content: "\e60f";
	}

	.icon-shouhoutuikuan:before {
		content: "\e631";
	}

	.icon-gouwuche:before {
		content: "\e609";
	}

	.icon-dizhi:before {
		content: "\e614";
	}

	.icon-fenlei:before {
		content: "\e706";
	}

	.icon-xingxing:before {
		content: "\e70b";
	}

	.icon-tuandui:before {
		content: "\e633";
	}

	.icon-zuanshi:before {
		content: "\e615";
	}

	.icon-zuo:before {
		content: "\e63c";
	}

	.icon-shoucang2:before {
		content: "\e62e";
	}

	.icon-shouhuodizhi:before {
		content: "\e712";
	}

	.icon-yishouhuo:before {
		content: "\e71a";
	}

	.icon-dianzan-ash:before {
		content: "\e617";
	}





	view,
	scroll-view,
	swiper,
	swiper-item,
	cover-view,
	cover-image,
	icon,
	text,
	rich-text,
	progress,
	button,
	checkbox,
	form,
	input,
	label,
	radio,
	slider,
	switch,
	textarea,
	navigator,
	audio,
	camera,
	image,
	video {
		box-sizing: border-box;
	}

	/* 骨架屏替代方案 */
	.Skeleton {
		background: #f3f3f3;
		padding: 20upx 0;
		border-radius: 8upx;
	}

	/* 图片载入替代方案 */
	.image-wrapper {
		font-size: 0;
		background: #f3f3f3;
		border-radius: 4px;

		image {
			width: 100%;
			height: 100%;
			transition: .6s;
			opacity: 0;

			&.loaded {
				opacity: 1;
			}
		}
	}

	.clamp {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		display: block;
	}

	.clamp2 {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}
	.clamp3 {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
	}

	.common-hover {
		background: #f5f5f5;
	}

	/*边框*/
	.b-b:after,
	.b-t:after {
		position: absolute;
		z-index: 3;
		left: 0;
		right: 0;
		height: 0;
		content: '';
		transform: scaleY(.5);
		border-bottom: 1px solid $border-color-base;
	}

	.b-b:after {
		bottom: 0;
	}

	.b-t:after {
		top: 0;
	}

	/* button样式改写 */
	/* uni-button,
	button {
		height: 80upx;
		line-height: 80upx;
		font-size: $font-lg + 2upx;
		font-weight: normal;

		&.no-border:before,
		&.no-border:after {
			border: 0;
		}
	} */

	uni-button[type=default],
	button[type=default] {
		color: $font-color-dark;
	}

	/* input 样式 */
	.input-placeholder {
		color: #999999;
	}

	.placeholder {
		color: #999999;
	}

	.c_df {
		display: flex;
	}

	.f16 {
		font-size: 16px;
	}

	.f20 {
		font-size: 20px;
	}

	.f34 {
		font-size: 34px;
	}

	.fbt {
		background-color: $base-color;
		border-radius: 40upx;
		color: #fff;
		line-height: 70upx;
		margin: 40upx auto;
		text-align: center;
		width: 94%;
		box-shadow: 4rpx 5rpx 17rpx 7rpx #ddd;
	}
	.opacity5{
		opacity: 0.5;
	}

	uni-checkbox .uni-checkbox-input {
		border-radius: 50% !important;
		color: #ffffff !important;
	}

	uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
		color: #fff;
		border-color: $base-color;
		background: $base-color;
	}
	.text-center{
		text-align: center;
	}
	.text-right{
		text-align: right;
	}
	.empty_loading {
		padding-top: 20upx;
		text-align: center;
		color: #0066CC;
	}
	.padding_nav{
		padding-top: calc(var(--status-bar-height) + 136rpx)!important;
	}
	.empty_loading image {
		height: 60upx;
		width: 60upx;
	}
	.none_data{
		text-align: center;
		margin-top: 30rpx;
	}
	.flex_box{
		display: flex;
	}
	.flex_align_center{
		display: flex;
		align-items: center;
	}
	.flex_between{
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.flex_center{
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.flex_evenly{
		display: flex;
		align-items: center;
		justify-content: space-evenly;
	}
	.flex_around{
		display: flex;
		align-items: center;
		justify-content: space-around;
	}
	.flex_end{
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}
	.flex_align_end{
		align-items: flex-end;
	}
	.flex_align_start{
		align-items: flex-start;
	}
	.flex1{
		flex: 1;
	}
	.pub_small{
		font-size: 20rpx;
	}
	.pub_old{
		font-size: 20rpx;
		color: #999;
		text-decoration: line-through;
	}
	.pub_red{
		color: #AF141D;
	}
	.pub_gray{
		color: #666;
		font-size: 24rpx;
	}
	.pub_share{
		font-size: 30rpx;
		position: fixed;
		right: 0;
		top: 640rpx;
		z-index: 50;
		padding: 10rpx 6rpx 10rpx 16rpx;
		border-radius: 16rpx 0 0 16rpx;
		color: #fff;
		text-align: center;
		background: linear-gradient(90deg, #A350E8 0%, #4E07A9 100%);
		letter-spacing: 6rpx;
	}
	.pub_share2{
		font-size: 30rpx;
		position: fixed;
		right: 0;
		top: 640rpx;
		z-index: 50;
		padding: 10rpx 6rpx 10rpx 16rpx;
		border-radius: 16rpx 0 0 16rpx;
		color: #333;
		text-align: center;
		background: linear-gradient( 90deg, #F5E0C3 0%, #EEBA71 100%);
		letter-spacing: 6rpx;
		font-weight: bold;
	}
	.pub_sharebg {
		position: fixed;
		z-index: 1000;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.3);
	
		image {
			width: 80%;
			position: fixed;
			left: 50%;
			top: 50%;
			z-index: 999;
			transform: translate(-50%, -50%);
		}
	}
	.noWrap{
		white-space: nowrap;
	}
	.totalBtn2{
		width: 400rpx;
		height: 74rpx;
		background: linear-gradient(270deg, #8917E2 0%, #B92DF1 100%);
		border-radius: 38rpx;
		color: #FFFFFF;
		font-size: 28rpx;
		text-align: center;
		line-height: 74rpx;
		margin: 40rpx auto;
	}
	.totalBtn{
		width: 400rpx;
		height: 74rpx;
		background: linear-gradient( 270deg, #8917E2 0%, #B92DF1 100%);
		border-radius: 38rpx;
		color: #FFFFFF;
		font-size: 28rpx;
		text-align: center;
		line-height: 74rpx;
		position: fixed;
		bottom: 60rpx;
		left: 0;
		right: 0;
		margin: auto;
		z-index: 2;
	}
	.select_imgs_public{
		display: flex;
		flex-wrap: wrap;
		margin-right: -10rpx;
		.select_img_public{
			width: 220rpx;
			height: 220rpx;
			position: relative;
			margin: 20rpx 10rpx 0 0;
			image,video {
				height: 100%;
				width: 100%;
			}
			text{
				background: #999;
				border-radius: 50%;
				color: #fff;
				height: 50upx;
				line-height: 40upx;
				font-size: 40upx;
				position: absolute;
				top: -10upx;
				right: -10upx;
				text-align: center;
				width: 50upx;
				opacity: .8;
			}
		}
		.select_img_public2{
			margin: 0;
		}
	}
	.padding30{
		padding: 0 30rpx;
	}
	.gomask{
		position: fixed;
	    width: 100%;
	    height: 10;
	    height: 100%;
	    background: rgba(0,0,0,.5);
	    top: 0;
	    z-index: 999999999999;
	    color: #fff;	
		.maskTit{
			position: absolute;
		    bottom: 20rpx;
		    right: 20rpx;	
			text-align: center;
			image{
				width: 200rpx;
			    transform: rotateX(180deg);
			    margin-top: 20rpx;	
			}
		}
	}
	.nobind{
		width: 600rpx;
		background: #fff;
		border-radius: 16rpx;
		text-align: center;
		padding: 60rpx 20rpx;
		font-size: 32rpx;
		button{
			margin-top: 40rpx;
		}
	}
	.aggravation{
		color:#9532E4;
		font-weight: bold;
	}
	.pub_red{
		color: #AF141D;
		font-weight: bold;
	}
	.pub_tip{
		color: #666;
		line-height: 50rpx;
	}
	.no_login{
		position: fixed;
		width: 100%;
		background: rgba(#000, 0.7);
		bottom: 0;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20rpx 30rpx;
		color: #fff;
		z-index: 99999;
		/*#ifdef H5*/
		bottom: calc(var(--window-bottom));
		/*#endif*/
		.no_btn{
			padding: 12rpx 25rpx;
			background: $bg-color;
			border-radius: 18rpx;
		}
	}
		.desktop_tip{
			background: rgba(255, 255, 255, 0.9);
			color: #333;
			font-size: 22rpx;
			border-radius: 10rpx;
			position: fixed;
			width: 78%;
			left: 0;
			right: 0;
			margin: auto;
			height: 60rpx;
			line-height: 60rpx;
			z-index: 99999999;
			top: calc(var(--status-bar-height) + 125rpx);
			padding: 0 20rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.up{
				position: absolute;
				color: #fff;
				right: 8%;
				height: 20rpx;
				top: -15rpx;
				line-height: 1;
			}
			image{
				width: 18rpx;
				height: 18rpx;
			}
			.title{
				flex: 1;
				margin-left: 20rpx;
				color: #000;
			}
			.add{
				width: 80rpx;
				height: 40rpx;
				line-height: 40rpx;
				border-radius: 40rpx;
				background: $bg-color;
				color: #fff;
				text-align: center;
			}
		}
		.alikefu{
			margin: 50rpx auto;
			text-align: center;
		}
</style>